package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.AccidentAudit;
import cn.wolfcode.crm.domain.Claim;
import cn.wolfcode.crm.query.AccidentAuditQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccidentAuditMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AccidentAudit record);

    AccidentAudit selectByPrimaryKey(Long id);

    List<AccidentAudit> selectAll();

    int updateByPrimaryKey(AccidentAudit record);

    int query4Count(AccidentAuditQueryObject qo);

    List<Claim> query4List(AccidentAuditQueryObject qo);

    void changeState(Long id);

    void updateByAudit(AccidentAudit accidentAudit);

    void insertClaimId(@Param("id") Long id, @Param("state") boolean state);

    void upadateEmployeeId(@Param("employeeId") Long employeeItemId, @Param("claimItemId") Long claimItemId,@Param("claimId") Long claimId);

    AccidentAudit selectclaimItemState4AaId(Long id);

    int selectDutyByAaId(Long id);

    Long selectClaimIdByAaId(Long id);

    AccidentAudit selectAaByClaimId(Long id);
}